
<meta charset="utf-8">
 
<?php  
/*  where username='$username' AND password='$password'*/
session_start();
$username=$_SESSION['username'];
require_once("mysql.php"); 
/*$con = mysql_connect("localhost","root","1");
if (!$con)
{
	die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);*/
$sql = "select * from work where username='$username'";
$result=mysql_query($sql);
while($clumn= mysql_fetch_array($result))
{
	echo "<h2>欢迎来到该页面</h2>";
	echo "<h3>您的个人信息为</h3>";
	echo "您的用户名为： ";
 	echo $clumn['username'];
 	echo "<br>";
 	echo "您的姓名为： ";
 	echo $clumn['name'];
 	echo "<br>";
 	echo "您的性别为： ";
 	echo $clumn['sex'];
 	echo "<br>";
 	echo "您的学校为： ";
 	echo $clumn['school'];
 	echo "<br>";
 	echo "您的学院为： ";
 	echo $clumn['xueyuan'];
 	echo "<br>";
 	echo "您的专业为： ";
 	echo $clumn['zhuanye'];
 	echo "<br>";
 	echo "您的手机号为： ";
 	echo $clumn['phone'];
 	echo "<br>";
 	echo "您的邮箱名为： ";
 	echo $clumn['email'];
} 
?>  
